/*基本*/
interface ResponseData {
  code: number
  message: string
}

/*角色信息*/
export interface SysRole {
  roleId: number
  createTime?: string
  updateTime?: string
  remark?: string
  roleName: string
  roleKey: string
  roleSort?: number
  dataScope?: number
  menuCheckStrictly: boolean
  deptCheckStrictly?: boolean
  delFlage?: boolean
  createBy?: string
  updateBy?: string
  status?: number
  permissions?: string[]
  menuIds?: number[]
  deptIds?: number[]
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/*分页插叙*/
export interface responseRolePageDate extends ResponseData {
  data: {
    total: number
    roleList: SysRole[]
  }
}

export interface Tree {
  id: number
  label: string
  children?: Tree[]
}

export interface reqRoleMenuTreeData extends ResponseData {
  data: Tree[]
}
